package com.lottery.material.service.portal.config.impl;

import com.lottery.material.dao.conf.PlatformScaleConfigMapper;
import com.lottery.material.pojo.conf.PlatformScaleConfig;
import com.lottery.material.service.portal.config.PlatformScaleConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:    系统平台收益分成比例配置服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-17 20:56
 */
@Service
public class PlatformScaleConfigServiceImpl implements PlatformScaleConfigService {

    @Autowired
    private PlatformScaleConfigMapper platformScaleConfigMapper;

    /**
     * description: 根据类型查询
     * author sunny
     * createDate 2019-04-17 下午 8:57
     * @param utilityType
     * @return
     */
    @Override
    public PlatformScaleConfig findByUtilityType(Integer utilityType) {
        return platformScaleConfigMapper.findByUtilityType(utilityType);
    }
}
